import jdk_observer_pattern.Police;
import jdk_observer_pattern.Thief;
import my_observer_pattern.concrete_observer.WechatUser;
import my_observer_pattern.concrete_subject.SubscriptionSubject;
import my_observer_pattern.observer.Observer;
import my_observer_pattern.subject.Subject;
import org.junit.Test;

public class jdk_pattern_test {

    @Test
    public void test(){

        Thief thief = new Thief("隔壁老王");
        Police police = new Police("小陈");

        thief.addObserver(police);

        thief.steal();
    }
}
